package com.guigu.chenjiajun.controller;

import com.guigu.chenjiajun.service.ProductionQueryService;
import com.guigu.common.pojo.MApply;
import com.guigu.common.vo.SearchVo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping("/ProductionQuery")
public class ProductionQueryController {

    @Resource
    private ProductionQueryService productionQueryService;


    @RequestMapping("/queryProduction")
    @ResponseBody
    public SearchVo<MApply> queryProduction(@RequestBody SearchVo searchVo){
        return  this.productionQueryService.queryProduction(searchVo);
    }

}
